﻿using System;
using System.Collections.Generic;
using System.Text;

namespace RaisingStudio.Data.Entities
{
    public partial class _SystemUserA : RaisingStudio.Data.Expressions.TableExpression
    {
        #region Constructor (s) / Destructor
        /// <summary>
        /// Constructor (s) / Destructor.
        /// </summary>
        public _SystemUserA() : base("SystemUserA")
        {
        }
        #endregion
        #region Members
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _UserID = "UserID";
        public readonly RaisingStudio.Data.Expressions.ColumnExpression UserID = _UserID;
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _UserName = "UserName";
        public readonly RaisingStudio.Data.Expressions.ColumnExpression UserName = _UserName;
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _FullName = "FullName";
        public readonly RaisingStudio.Data.Expressions.ColumnExpression FullName = _FullName;
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _Password = "Password";
        public readonly RaisingStudio.Data.Expressions.ColumnExpression Password = _Password;
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _ChangingPassword = "ChangingPassword";
        public readonly RaisingStudio.Data.Expressions.ColumnExpression ChangingPassword = _ChangingPassword;
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _UserLocked = "UserLocked";
        public readonly RaisingStudio.Data.Expressions.ColumnExpression UserLocked = _UserLocked;
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _LastLogin = "LastLogin";
        public readonly RaisingStudio.Data.Expressions.ColumnExpression LastLogin = _LastLogin;
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _UserDescription = "UserDescription";
        public readonly RaisingStudio.Data.Expressions.ColumnExpression UserDescription = _UserDescription;

		#endregion
    }

    partial class SystemUserA
    {
        #region Members
        public static readonly _SystemUserA _ = new _SystemUserA();

        public static RaisingStudio.Data.Expressions.ConditionExpression All
        {
            get
            {
                return new RaisingStudio.Data.Expressions.ConditionExpression();
            }
        }

        public static RaisingStudio.Data.Expressions.ColumnExpression[] Columns
        {
            get
            {
                return new RaisingStudio.Data.Expressions.ColumnExpression[]
                        {
                            _SystemUserA._UserID,
                            _SystemUserA._UserName,
                            _SystemUserA._FullName,
                            _SystemUserA._Password,
                            _SystemUserA._ChangingPassword,
                            _SystemUserA._UserLocked,
                            _SystemUserA._LastLogin,
                            _SystemUserA._UserDescription,
                        };
            }
        }

        public static RaisingStudio.Data.Expressions.ColumnExpression[] Except(params RaisingStudio.Data.Expressions.ColumnExpression[] columns)
        {
            List<RaisingStudio.Data.Expressions.ColumnExpression> columnList = new List<RaisingStudio.Data.Expressions.ColumnExpression>(Columns);
            if ((columns != null) && (columns.Length > 0))
            {
                foreach (RaisingStudio.Data.Expressions.ColumnExpression column in columns)
                {
                    columnList.Remove(column);
                }
            }
            return columnList.ToArray();
        }
		#endregion
    }
}
